package com.zmj.exception;

/**
 * 异常枚举
 *
 * @author zmj
 * @date 2021-09-01 13:30
 */
public enum ErrorCodeEnum {

    //从30000 开始定义自定义异常
    SYSTEM_ERROR("30000", "系统开小差了～"),
    SYSTEM_BUYS("300001", "访问人数过多，请稍后重试。"),
    SYSTEM_RUNNING("300002", "运行中，请勿重复点击！"),
    TEST_ERROR("400001", "模拟异常！"),

    ;

    private String code;
    private String msg;

    ErrorCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }


}

